package com.hongfeng.web.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hongfeng.web.model.common.BaseEntity;

/**
 * 
 * <供求信息类型>
 * 
 * @author llc
 * @date 创建时间：2012-12-5 下午04:32:12
 */
@Entity
@Table(name = "buy_info_type")
public class BuyInfoType extends BaseEntity {

	private static final long serialVersionUID = 8112852910280186376L;
	@Id
	@GeneratedValue
	private Long id;
	// 类型名称
	@Column(name = "name", length = 100, nullable = false)
	private String name;
	// 类型编码
	@Column(name = "code", length = 20, nullable = false)
	private String code;
	// 排序值
	@Column(name = "pos")
	private Integer pos;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getPos() {
		return pos;
	}

	public void setPos(Integer pos) {
		this.pos = pos;
	}

}
